package com.itheima02.dao;

import com.itheima02.domain.Student;

import java.util.ArrayList;

public interface StudentDao  {
    //查看所有学生
    public abstract ArrayList<Student> findAll();

    //根据id查询用户
    public abstract Student findById(Integer id);

    //添加一个学生
    public abstract int insert(Student stu);

    //删除一个学生
    public abstract int delete(Integer id);

    //修改一个学生
    public abstract int update(Student stu);
}
